<!doctype html>
<html>
<head>
    <title>列表页面</title>
    <?php $this->load->module('admin/index/page_header');?>
    <link href="<?php echo URLPRE;?>static/admin/css/font_icon.css" rel="stylesheet" />

</head>
<body>
<div id="mainContent" class="wrap">
    <div class="nav">
        <ul>
            <li class="current"><a href="javascript:void(0)">房间号列表</a></li>
            <li><a href="<?php echo $add_url;?>">添加房间号</a></li>
        </ul>
    </div>
 <!--   <div class="h_a">搜索</div>
    <div class="search_type cc mb10">
        <form action="<?php /*$form_url;*/?>" method="get">
            <div class="ul_wrap">
                <label>关键字：</label>
                <input type="text" class="input length_3" name="word"  value="<?php /*if(!empty($condition['word'])) echo $condition['word'] ;*/?>" placeholder='酒店名称'>
                <input type="checkbox" value="1" <?php /*if($condition['status']=='1') echo "checked" ;*/?> name="status">查看禁用酒店
                <button class="btn" type="submit">搜索</button>
            </div>
        </form>
    </div>-->
    <div class="h_a">房间号列表</div>
    <div id="content" class="table_full">
        <form method="post" action="<?php echo URLPRE?>member/admin/delete_member/">

            <table data-uri="<?php echo site_url('hotel/admin/code_status');?>">
                <tr>
                    <th style="width:2%;">ID</th>
                    <th style="width:6%;">房间号</th>
                    <th style="width:6%;">房间价格</th>
                    <th style="width:6%;">床位数</th>
                    <th style="width:6%;">是否套房</th>
                    <th style="width:4%;">备注</th>
                    <th style="width:4%;">更新时间</th>
                    <th style="width:4%;">创建时间</th>
                 <!--   <th style="width:4%;">状态</th>-->
                    <th style="width:2%;">操作</th>
                </tr>
                <?php if(isset($list)&&!empty($list)):?>
                    <?php foreach($list as $k=>$v):?>
                        <tr>
                            <td><?php echo $v['id'];?></td>
                            <td style="width:6%;"><?php echo $v['name'];?></td>
                            <td style="width:6%;"><?php echo $sell_model ? $v['price'] : '一口价模式';?></td>
                            <td style="width:4%;"><?php echo $v['number'];?></td>
                            <td style="width:4%;"><?php echo !$v['is_suite'] ? '否':  '是' ;?></td>
                            <td style="width:4%;"><?php echo $v['note'];?></td>
                            <td style="width:4%;"><?php echo $v['upts'];?></td>
                            <td style="width:4%;"><?php echo $v['crts'];?></td>

                           <!-- <td style="width:4%;">
                                <img class="pointer" data-id="<?php /*echo $v['id'];*/?>" style="cursor: pointer;" data-field="status" data-value="<?php /*echo $v['status'];*/?>" src="<?php /*echo URLPRE;*/?>static/admin/images/icons/icon_<?php /*echo $v['status'];*/?>.png" /></td>-->
                            <td style="width:4%" class="btn_min">
                                <a class="icon-pencil" href="<?php echo site_url('hotel/admin/code_edit/'.$v['id']);?>">编辑</a>
                                <a class="icon-remove-2 doDel" href="javascript:;" data-uri="<?php echo site_url('hotel/admin/delete_code?id='.$v['id']);?>">删除</a>
                            </td>
                        </tr>
                    <?php endforeach ;?>
                <?php endif;?>


            </table>
        </form>
        <div class="page_nav">
            <?php echo $this->mypageclass->show(2); ?>
        </div>
    </div>
</div>

</body>
</html>